package se.webbzon.oschi01.nbt;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public interface TagFactory<T> {
	
	public byte getId();
	
	public boolean isNameless();
	
	public Tag<T> createTag(String tagName);
	
	public Tag<T> readTag(String tagName, DataInputStream is) throws IOException;
	
	public void writeTag(Tag<T> tag, DataOutputStream dos) throws IOException;

}
